import { publishedBooks } from "@/Api/bookcase";
const state = {
  bookShelf: [], //书架上的书
  otherBookShelf: [], //他人书架上的书
};
const mutations = {};
const actions = {
  async publishedBooks(context, data) {
    let result = await publishedBooks(data);
    console.log(result)
    if (result.data.status == 200) {
      return "success";
    } else {
      return "error";
    }
  },
};
const getters = {};
export default {
  state,
  mutations,
  actions,
  getters,
};
